<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>浏览器可视窗口的属性</title>
</head>
<body>
    <script>
        console.log(window.innerWidth); // 浏览器可视窗口的宽度
        console.log(window.innerHeight); // 浏览器可视窗口的高度
    </script>
</body>
</html>